import { createElement } from '../vnode/main.js'
/* todo

1. $scope 从父实例那里衔接过来

2. 创建 vm._c vm.$createElement 方法
 */
function initRender(vm){
    vm._vnode = null
    var options = vm.$options;

    // var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
    // var renderContext = parentVnode && parentVnode.context;
    // vm.$slots = resolveSlots(options._renderChildren, renderContext);
    // vm.$scopedSlots = emptyObject;

    vm._c = vm.$createElement = createElement
}

export default initRender
